﻿using System;

namespace studentSubsidy.Entity
{
    public class Result
    {
        private int code;
        private string message;
        private object data;
        private object data2;

        public int Code
        {
            get => code;
            set => code = value;
        }

        public string Message
        {
            get => message;
            set => message = value ?? throw new ArgumentNullException(nameof(value));
        }

        public object Data
        {
            get => data;
            set => data = value ?? throw new ArgumentNullException(nameof(value));
        }

        public object Data2
        {
            get => data2;
            set => data2 = value ?? throw new ArgumentNullException(nameof(value));
        }

        public Result(int code, string message, object data,object data2)
        {
            this.code = code;
            this.message = message;
            this.data = data;
            this.data2 = data2;
        }
    }
}